home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club KidSoft Volume 3 #2
/
CKSPCV32.BIN
/
movies
/
clubroom.dir
/
00006_Script_Clubroom Loop
< prev
next >
Wrap
Text File
|
1995-04-03
|
4KB
|
150 lines
on enterFrame
global gCurrentButton, gSButton, gSReturn
global gSTvStart, gSTvStatic, gTvCast
global gSContest
global gSArt
global gSDemo, gDemoCast
global gSRadio, gRadioCast
global gSMailBox, gMailBoxCast, gMailBoxUp
if gCurrentButton <> 0 then
if gCurrentButton = 13 then -- the Mail Box
NextMailBox
exit
else if rollover(gCurrentButton) then
if gCurrentButton = 2 then
TvShowStatic
else if gSButton = gSDemo then
LemurDance
else if gSButton = gSRadio then
RadioDance
end if
exit
end if
if gCurrentButton = 7 then -- roll off the Mail Box
set gCurrentButton = 0
set the castNum of sprite gSMailBox to the number of cast "MAILBOX3.PIC"
updateStage
else
OffButton
StopSound
end if
end if
if rollover(2) then -- CLUB TV
OverButton 2, gSTvStart
set gTvCast = the castNum of sprite gSTvStart
--tv
StartSound "STATIC.AIF"
else if rollover(3) then -- Contest Central
StartSound "Blink"
OverButton 3, gSContest
else if rollover(4) then -- CLUB ART
OverButton 4, gSArt
StartSound "Bweep"
else if rollover(5) then -- Demo Lemur
OverButton 5, gSDemo
PuppetSound "LEMUR2.AIF"
set gDemoCast = the castNum of sprite gSDemo
else if rollover (6) then
OverButton 6, gSRadio
set gRadioCast = the castNum of sprite gSRadio
-- radio
if(random(2) = 1) then
StartSound "TUNING.AIF"
else
StartSound "TAPECUE.AIF"
end if
else if gMailBoxUp = true and rollover(7) then
set gCurrentButton = 7
set gSButton = gSMailBox
StartSound "Page Flip"
DownButton
else if rollover(8) then -- Super Store
global gSStore
OverButton 8, gSStore
StartSound "Bweep"
else if rollover(10) then -- Return
OverButton 10, gSReturn
end if
-- check the mailbox time
global gMailBoxTimer, gSMailBoxButton
if (gMailBoxUp = false) and (the timer > gMailBoxTimer) then
StartSound "BUBBLES.AIF"
OverButton 13, gSMailBox
set gMailBoxCast = the castNum of sprite gSMailBox
set the visible of sprite gSMailBoxButton to true
end if
end
----------------------------------------------
-- Animate the tv static
----------------------------------------------
on TvShowStatic
global gStvStart, gSTvStatic, gTvStaticCount, gTvCast
global gSButton
-- transition to the bouncing TV
if gTvCast = the number of cast "TVFUZZ4" then
set the visible of sprite gSTvStart to false
set the puppet of sprite gSTvStart to false
set the visible of sprite gSTvStatic to true
set the puppet of sprite gSTvStatic to true
set gTvCast = the number of cast "TVFUZZ5"
set gSButton = gSTvStatic
else
set gTvCast = gTvCast + 1
if gTvCast > the number of cast "TVFUZZ7" then
set gTvCast = the number of cast "TVFUZZ5"
end if
set the castNum of sprite gSButton to gTvCast
end if
updateStage
end
----------------------------------------------
-- Animate the demo Lemur
----------------------------------------------
on LemurDance
global gSDemo, gDemoCast
set gDemoCast = gDemoCast + 1
if gDemoCast > the number of cast "LEMUR9.PIC" then
set gDemoCast = the number of cast "LEMUR1.PIC"
end if
set the castNum of sprite gSDemo to gDemoCast
updateStage
end
----------------------------------------------
-- Next Mail Box
----------------------------------------------
on NextMailBox
global gSMailBox, gMailBoxTimer, gMailBoxUp, gMailBoxCast
global gCurrentButton, gSButton
if gMailBoxCast = the number of cast "MAILBOX3.PIC" then
set gCurrentButton = 0
set gSButton = 0
set gMailBoxUp = true
else
set gMailBoxCast = gMailBoxCast + 1
set the castNum of sprite gSMailBox to gMailBoxCast
end if
updateStage
end
on exitFrame
CheckBackgroundSound
go to the frame
end